package grape.house.rest.buildingroom.form;
import grape.common.rest.form.BaseUpdateForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 房屋表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="房屋更新表单对象")
public class BuildingRoomUpdateForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;


    @NotEmpty(message="名称不能为空")
    @ApiModelProperty(value = "名称",required = true)
    private String name;

    @NotEmpty(message="名称别名不能为空")
    @ApiModelProperty(value = "名称别名",required = true)
    private String nameAlias;

    @NotEmpty(message="楼栋id不能为空")
    @ApiModelProperty(value = "楼栋id",required = true)
    private String buildingId;

    @ApiModelProperty(value = "单元id")
    private String buildingUnitId;

    @NotNull(message="在第几层不能为空")
    @ApiModelProperty(value = "在第几层",required = true)
    private Integer onFloor;

    @ApiModelProperty(value = "层高")
    private Float floorHeight;

    @NotEmpty(message="户型id不能为空")
    @ApiModelProperty(value = "户型id",required = true)
    private String estateApartmentLayoutId;

    @NotNull(message="使用/套内面积不能为空")
    @ApiModelProperty(value = "使用/套内面积",required = true)
    private Float usableArea;

    @NotNull(message="分摊面积不能为空")
    @ApiModelProperty(value = "分摊面积",required = true)
    private Float shareArea;

    @NotEmpty(message="物业类型id不能为空")
    @ApiModelProperty(value = "物业类型id",required = true)
    private String propertyTypeId;

}
